package models

import (
	"gorm.io/gorm"
	"time"
)

type ChatRecord struct {
	gorm.Model
	ConsultId  int       `gorm:"type:int;comment:'问诊 ID'"`
	SenderId   int       `gorm:"type:int;comment:'发送者 ID'"`
	SenderType int       `gorm:"type:int;comment:'发送者类型 ID'"`
	Content    string    `gorm:"type:varchar(19);comment:'消息内容'"`
	ImageUrl   string    `gorm:"type:varchar(19);comment:'图片URl'"`
	MsgType    int       `gorm:"type:int;comment:'消息类型 '"`
	SendTime   time.Time `gorm:"type:datetime;comment:'发送时间 '"`
}
type MedicalRecord struct {
	userId      int       `gorm:"type:int;comment:'用户 ID'"`
	RecordName  string    `gorm:"type:varchar(19);comment:'病例名称'"`
	Description string    `gorm:"type:varchar(19);comment:'病例描述'"`
	DoctorId    int       `gorm:"type:int;comment:'诊断医生id '"`
	SendTime    time.Time `gorm:"type:datetime;comment:'发送时间 '"`
}
